package cn.wolfcode.p2p.mgrsite.util;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import cn.wolfcode.p2p.business.service.IBidRequestService;

/**
 * 定时处理定时发标借款到达发标时间之后的状态变化
 * 
 * @author wolfcode
 *
 */
@Component
public class BidRequestPublishCheckJob {

	@Autowired
	private IBidRequestService bidRequestService;

	/**
	 * 执行任务   幂等操作
	 */
	@Scheduled(cron = "0 * * * * ?")
	public void job() {
		this.bidRequestService.publishInTime();
	}

}
